package tr.com.netgis.util;

import tr.com.netgis.SetLocationService;
import android.content.Intent;

public class Constants {

	public static Intent SET_LOCATION_SERVICE_INTENT;
	
	static {
		try {
			SET_LOCATION_SERVICE_INTENT = new Intent(SetLocationService.class.getName());			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public static final int MESSAGES_SIZE = 100;
	
	public static final String PREFERENCES_KEY_USE_GPS = "useGPSPref";
	public static final String PREFERENCES_KEY_LOCATION_SIZE = "txtLocationSizePref";
	
	/**
	 * meters
	 */
	public static final int MINIMUM_DISTANCE_CHANGE_FOR_UPDATES = 1;
	
	/**
	 * seconds
	 */
	public static final int MINIMUM_TIME_BETWEEN_UPDATES = 10;
	
	/**
	 * 1 dk
	 */
	public static final int SEND_FREQUENCY = 60;
	
	public static final String SOAP_ACTION_SET_LOCATION = "http://tempuri.org/setLocation";
	public static final String SOAP_ACTION_SET_LOCATIONS = "http://tempuri.org/setLocations";

	public static final String METHOD_NAME_SET_LOCATION = "setLocation";
	public static final String METHOD_NAME_SET_LOCATIONS = "setLocations";
	
	public static final String NAMESPACE = "http://tempuri.org/";

	public static final String FAD = "SON_YERLER.BAGLANTI1.SON_YERLER";
	
	public static final String _SESSION_ID = "71ad4062bb6f4b458a828f22a067798b";
	
	public static final String SERVER_URL = "http://213.139.195.74/NetMobile/GenericClass/DataRetrievingService.asmx";
	
	/**
	 * Utility getDeviceId'de set ediliyor
	 */
	public static String DEVICE_ID = "unknown";
	
	public static int LOG_LIST_ITEM_HEIGHT = 130;
	
	/**
	 * At most how many location will be inserted in database for no internet connection.
	 */
	public static int LOCATION_SIZE = 10;
	
	
	public static int LAST_N_LOCATIONS = 10;
	
	/**
	 * km/h
	 */
	public static float eV = 5;
	
	public static final String P_NAME_DEVICECODE = "deviceCode";
	public static final String P_NAME_LAT = "lastLocation_X";	
	public static final String P_NAME_LON = "lastLocation_Y";
	public static final String P_NAME_TARIH_SAAT = "tarihSaat";	
	public static final String P_NAME_SPEED = "speed";
	public static final String P_NAME_STATUS = "status";
	
}
